import feathers.controls.Application
import feathers.controls.Button
import feathers.controls.TextCallout
import kotlinx.browser.document
import openfl.display.Stage

@JsExport
class App : Application() {
    init {
        addChild(Button("Click me") {
            TextCallout.show("Button clicked", it.target as Button)
        })
    }
}

fun main() {
    val stage = Stage(550, 400, 0xffffffff, App::class.js)
    document.body?.appendChild(stage.element)
}